import $api from '../api/http';
//部门的增删改查
export const department_adorupd = (tbWorkflow) =>$api.post('/department/addUpd',tbWorkflow)
export const department_list = (params) =>$api.get('/department/list',params)
export const department_delete = (params) =>$api.deleteRequest('/department/delete',params)
export const department_byid=(id)=>$api.get('/department/getDepartmentById',id)

//单位的增删改查
export const sponsor_adorupd = (params) =>$api.post('/sponsor/addUpd',params)
export const sponsor_list = (params) =>$api.get('/department/delete',params)
export const sponsor_listid = (id) =>$api.get('/sponsor/getSponsorById',id)
export const sponsor_delete = (params) =>$api.deleteRequest('/sponsor/delete',params)

//单位部门
export const sponsorordepartment_listid = (params) =>$api.post('/department/sponsorOrDepartmenListByid',params)

